clear 

* set directory 
* cd "directory"

* set paths
global datafolder "data"
global outputfolder "output"

********************************************************************************
*			Figure 3: Distribution of markups
********************************************************************************
	use "$datafolder\maindata.dta", clear
	
	keep if datem >= 660
	
	hist Dif if inrange(Dif,-15,10), bin(40) frequency color(gray%80) ///
	graphregion(color(white)) xlabel(#10) ///
	ylabel(#10, angle(horizontal)) ///
	xtitle("Markup")  xscale(range(-15(5)10)) xlabel(#10)  ///
	xline(0, lpattern(dash))
		
	graph export "$outputfolder\figure_3.pdf", ///
		as(pdf) replace
	graph export "$outputfolder\figure_3.png", ///
		as(png) replace
